﻿using System;
using System.Data;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using AnyOffice.Components;
using AnyOffice.DAL;

namespace AnyOffice.general.attend.personal
{
    public partial class evection : ModulePage
    {

        public string GetStatusName(int allow)
        {
            switch (allow)
            {
                case 0:
                    return "待批";

                case 1:
                    return "批准";

                case 2:
                    return "未批准";
            }
            return "";
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            DataTable table = new AttendEvectionDao().SelectMy(base.Conn, base.User.Identity.Name);
            if (table.Rows.Count > 0)
            {
                this.rptEvection.DataSource = table;
                this.rptEvection.DataBind();
            }
        } 

    }
}
